using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
using Yoozoo.Gameplay.City;

namespace Yoozoo.Gameplay.CityEditor
{
    [CustomEditor(typeof(CityBuildingFloorEditor))]
    public class CityBuildingFloorEditorEditor : UnityEditor.Editor
    {
        private CityBuildingFloorEditor _cityBuildingFloorEditor;
        
        private void OnEnable()
        {
            _cityBuildingFloorEditor = target as CityBuildingFloorEditor;
        }
        public override void OnInspectorGUI()
        {
            serializedObject.Update();

            base.OnInspectorGUI();
            
            GUILayout.BeginHorizontal();
            if (GUILayout.Button("刷新格子数据",GUILayout.Height(30)))
            { 
                _cityBuildingFloorEditor.RefreshCells();
            }
            
            GUILayout.EndHorizontal();
            
        }
    }
}
